package com.runshu.newsmartark.mvp.model;


import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.PhysicalEntity;
import com.runshu.newsmartark.mvp.contract.PhysicalContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/8/24
 * @decs：
 */

public class PhysicalModel extends BaseModel implements PhysicalContract.Model {
    @Override
    public void getDeliveryList(String mac,int pageNum, int pageSize,  String deliveryStatus,BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("mac", mac);
        builder.putParams("pageNum", pageNum);
        builder.putParams("pageSize", pageSize);
        builder.putParams("deliveryStatus", deliveryStatus);
        super.initDataFromServer(ConstantUrl.GET_DELIVE_LIST, builder.build(), PhysicalEntity.class, ResponseBean.RES_DATATYPE_BEAN, baseCallBack);

    }
}